<div class="module-02 module-monney">
	<div class="box-title-02 title-monney">
		<h3><?php echo $this->lang->line('currency') ?></h3>
	</div><!-- end title-monney -->
	
	<div class="box-content-02 content-monney clearfix">
		<p>
			<select  class="currency" name="currency">
				<option <?php if($currency == 'vnd') echo 'selected="selected"';?> value="vnd" >Việt Nam đồng (VND)</option>
                <option <?php if($currency == 'usd') echo 'selected="selected"';?> value="usd" >Dollar (USD)</option>
			</select>
		</p>
	</div><!-- end content monney -->
	<div class="data2"></div>
	<div class="box-bottom-02">
	</div><!-- end bottom-02-->
</div><!-- end module-monney -->
<script>
$(document).ready(function(){
 $(".currency").change(function () {
        var data= $(this).val();
        var url = '<?php echo base_url().'mod_currency/mod_currency/ajax';?>';
        $.ajax({
          		type: "POST",
          		url: url,
          		data: {'currency': data},
                success: callback
        		});
         
        return false;
    });
 });
 function callback(data, status){
        location.reload();
        //$(".data2").html(data);
      }

</script>